<template>
  <div class="module22">
    <el-carousel class="carousel" :interval="5000" arrow="never">
      <el-carousel-item v-for="(item, index) in data" :key="index">
        <img class="img-view" :src="item" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script setup>
const props = defineProps({
  data: {
    type: Array,
    default: () => []
  }
})
</script>
<style lang="scss" scoped>
.module22 {
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
  .carousel {
    width: 100%;
    height: 160px;
    .img-view {
      width: 100%;
    }
  }
}
</style>
